package UserImformation;
import javax.persistence.*;

@Entity
@Table
public class Account {

    @Id
    private String username;        // 用户名

    @Column(unique = true, nullable = false)
    private int user_number;       // 学号
    private String faculty_title;   // 学院
    private String email;           // 邮箱
    private String phone;           // 手机
    private String qq;              // qq
    private String wechat;          // 微信
    private String dgut;            // 莞工
    private String img;             // 头像
    private String password;        // 密码

    public Account() {
    }

    public Account(int user_number, String username, String faculty_title, String email, String phone, String qq, String wechat, String dgut, String img, String password) {
        this.user_number = user_number;
        this.username = username;
        this.faculty_title = faculty_title;
        this.email = email;
        this.phone = phone;
        this.qq = qq;
        this.wechat = wechat;
        this.dgut = dgut;
        this.img = img;
        this.password = password;
    }

    public int getUser_number() {
        return user_number;
    }

    public void setUser_number(int user_number) {
        this.user_number = user_number;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getFaculty_title() {
        return faculty_title;
    }

    public void setFaculty_title(String faculty_title) {
        this.faculty_title = faculty_title;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public String getWechat() {
        return wechat;
    }

    public void setWechat(String wechat) {
        this.wechat = wechat;
    }

    public String getDgut() {
        return dgut;
    }

    public void setDgut(String dgut) {
        this.dgut = dgut;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}